		<script>
		$(document).ready(function()
		{

			
			// Ajout dynamique de nouveau champs d'upload (inscription)
			$("button#add_field").click(function (){
			var nb = $('div.upload').length;
			
			if(nb < 5)
				$('div.upload:eq('+(nb-1)+')').after('<div class="control-group upload"><label class="control-label" for="avatar'+(nb+1)+'">Autre image</label><div class="controls"><input type="file" name="file_'+(nb+1)+'" id="avatar'+(nb+1)+'" /></div></div>');
			
			});
			
			
			
		});
	</script>
	
	<!-- Corps du site -->
    <section id="corps">
		<h1>Ajouter un nouveau lieu:</h1>
		<form class="form-horizontal" action="<?php echo url('lieu/add_validation'); ?>" method="post" accept-charset="utf-8" enctype="multipart/form-data">
				    <div class="control-group">
					<label class="control-label" for="type_lieu">Type du lieu</label>
					<div class="controls">
						<select id="type_lieu" name="type_lieu">
							<?php 
							foreach ($list_lieu as $value)
							{ 
								echo '<option value="'.$value['id'].'">'.$value['nom'].'</option>';
							}
							?>
						</select>
					</div>
				   </div>
				   <div class="control-group">
					<label class="control-label" for="name_lieu">Nom du lieu</label>
					<div class="controls">
						<input type="text" id="name_lieu" name="name_lieu" placeholder="Nom" />
					</div>
				   </div>
				     <div class="control-group">
					<label class="control-label" for="desc_lieu">Description</label>
					<div class="controls">
						<textarea id="desc_event" name="desc_lieu" placeholder="Description"></textarea>
					</div>
				   </div>
				   <div class="control-group">
					<label class="control-label" for="addr_lieu">Adresse</label>
					<div class="controls">
						<input type="text" id="addr_lieu" name="addr_lieu" placeholder="Adresse" />
					</div>
				   </div>
				  <div class="control-group">
					<label class="control-label" for="city_lieu">Ville</label>
					<div class="controls">
					  <select id="city_lieu" name="city_lieu">
					  	<?php 
					  	foreach ($data as $value) {
					  		# code...
					  		echo '<option value ="'.$value['id'].'">'.$value['nom'].'</option>';
					  	}
						?>
					  </select>
					</div>
				  </div>
				  <div class="control-group">
					<label class="control-label" for="icon_lieu">Image de présentation</label>
					<div class="controls">
					  <input type="file" name="icon_lieu" id="icon_lieu" placeholder="Icone" />
					</div>
				  </div>
				   <div class="control-group upload">
					<label class="control-label" for="other_image">Autre image</label>
					<div class="controls">
					  <input type="file" name="file_1" id="other_image" />
					  <button type="button" class="btn btn-mini btn-warning" id="add_field"><i class="icon-plus icon-white"></i></button>
					</div>
				  </div>
				   <div class="control-group">
					<div class="controls">
					  <button type="submit" class="btn btn-primary">Ajouter le lieu</button>
					</div>
				  </div>
				</form>
    </section>
